﻿/* DotNetHoldem 
 * .Net Solution that allows to use OpenHoldem with .Net logic
 * Author: Óscar Andreu
 * oesido at gmail dot com
 * Licensed under GPLv3 - 2012
 */

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DotNetBotLogic.Enums;

namespace DotNetBotLogic.Classes
{
    internal static class OhHelper
    {
        internal static OH_Wrapper Oh;

        internal static BetRounds GetBetRound()
        {
            return (BetRounds)Oh.GetSym(Symbols.br.ToString());
        }

        internal static double GetSymbol(int chair, Symbols symbol)
        {
            return OhHelper.Oh.GetSym(chair, symbol.ToString());
        }

        internal static double GetSymbol(Symbols symbol)
        {
            return Oh.GetSym(symbol.ToString());
        }

        internal static double GetSymbol(string symbol)
        {
            return Oh.GetSym(symbol);
        }

        internal static int GetSymbolAsInt(Symbols symbol)
        {
            return (int)GetSymbol(symbol);
        }

        internal static holdem_state GetHoldemState()
        {
            return Oh.Getholdemstate();
        }

        internal static string GetPlayerName(int chair)
        {
            return OhHelper.Oh.GetPlayerName(chair);
        }
    }
}
